package server.auth;

import java.io.BufferedReader;
import java.io.IOException;

public class SimpleAuthManager implements AuthManager {

	private static final String USER = "user";
	private static final String PASS = "passwd";

	@Override
	public boolean auth(BufferedReader br) throws IOException {
		String username = br.readLine();
		String password = br.readLine();
		return username.compareTo(USER) == 0 && password.compareTo(PASS) == 0;
	}

}
